Working With resultset object in Snowflake